<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title th:text="${estate.title}">PDF文档</title>
    <link rel="stylesheet" type="text/css" th:href="${estate.metrics.common}" />
    <style>
        @page {
            size: 420mm 297mm; /*设置纸张大小:A4(210mm 297mm)、A3(297mm 420mm) 横向则反过来*/
            margin: 0.25in;
            padding: 1em;
            @bottom-center{
                content:"版权所有";
                font-family: SimSun;
                font-size: 12px;
                color:red;
            };
            @top-center { content: element(header) };
            @bottom-right{
                content:"第" counter(page) "页  共 " counter(pages) "页";
                font-family: SimSun;
                font-size: 12px;
                color:#000;
            };
        }
        body{font-family: 'SimSun'}
        td, th {
            font-style: normal;
            font-weight: normal;
            text-align: center;
        }

        tr {
            height: 40px;
        }

        .twoHead th {
            width: 6.25%;
            height: 40px;
            padding: 0 10px;
            font-size: 14px;
            font-weight: bold;
        }
        table {
            border: none;
            border-collapse: collapse;
            border-color: #D8DFE6;
        }
        table thead {
            background: #F3FDFF;
        }
    </style>
</head>
<body class="body" style="font-family:'SimSun'">
<h1 th:text="${estate.title}"></h1>
<img th:src="${estate.imageUrl}"/>

<h2 th:text="${estate.subTitle}"></h2>

<div class="table" border="1" cellspacing="0" cellpadding="10" width="100%">
    <table>
        <thead>
        <tr class="twoHead">
            <th></th>
            <th>2020</th>
            <th>2021</th>
            <th>2022</th>
            <th>2023</th>
            <th>2024</th>
            </tr>
        </thead>
        <tbody>
       <!-- <tr th:each="item : ${estate.list}">
            <td th:text="${item.topic}"></td>
            <td th:text="${item.val2020}"></td>
            <td th:text="${item.val2021}"></td>
            <td th:text="${item.val2022}"></td>
            <td th:text="${item.val2023}"></td>
            <td th:text="${item.val2024}"></td>
        </tr>-->
        </tbody>
    </table>
</div>

</body>
</html>
